package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class NoticePopup implements Parcelable {

    /**
     * 图片地址
     */
    @SerializedName("title")
    private String title;

    /**
     * 跳转网页地址
     */
    @SerializedName("content")
    private String content;
    /**
     * 跳转网页地址
     */
    @SerializedName("service_url")
    private String serviceUrl;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getServiceUrl() {
        return serviceUrl;
    }

    public void setServiceUrl(String serviceUrl) {
        this.serviceUrl = serviceUrl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.title);
        dest.writeString(this.content);
        dest.writeString(this.serviceUrl);
    }

    public NoticePopup() {
    }

    protected NoticePopup(Parcel in) {
        this.title = in.readString();
        this.content = in.readString();
        this.serviceUrl = in.readString();
    }

    public static final Creator<NoticePopup> CREATOR = new Creator<NoticePopup>() {
        @Override
        public NoticePopup createFromParcel(Parcel source) {
            return new NoticePopup(source);
        }

        @Override
        public NoticePopup[] newArray(int size) {
            return new NoticePopup[size];
        }
    };
}
